Import("test_env", "common_objects")
if not test_env["have_boost_test"]:
    Return()

test_sources = Glob("test_*.cpp")
test = test_env.Program("test", [test_sources, common_objects])
run_test = test_env.Alias("run-test", test, "./$SOURCE")
AlwaysBuild(run_test)
test_env.Alias("check", run_test)
